import request from '@/utils/request'

// 任务统计
export function statTask(query) {
  return request({
    url: '/dashboard/statTask',
    method: 'get',
    params: query
  })
}

// 按天统计任务
export function statTaskByDay(params) {
  return request({
    url: '/dashboard/statTaskByDay',
    method: 'get',
    params
  })
}

// 微客统计
export function statMember(query) {
  return request({
    url: '/dashboard/statMember',
    method: 'get',
    params: query
  })
}

// 按天统计微客
export function statMemberByDay(params) {
  return request({
    url: '/dashboard/statMemberByDay',
    method: 'get',
    params
  })
}

// 酬金统计
export function statCommissionAmount(enterpriseId) {
  return request({
    url: '/dashboard/statCommissionAmount',
    method: 'get',
    params: { enterpriseId: enterpriseId }
  })
}

// 按地区统计微客
export function statMemberByArea(enterpriseId) {
  return request({
    url: '/dashboard/statMemberByArea',
    method: 'get',
    params: { enterpriseId: enterpriseId }
  })
}

// 提示
export function pageTips(enterpriseId) {
  return request({
    url: '/dashboard/pageTips',
    method: 'get',
    params: { enterpriseId: enterpriseId }
  })
}

